//
//  BaseNavigationController.m
//  TelemedCloud
//
//  Created by YT on 2018/5/7.
//  Copyright © 2018年 YT. All rights reserved.
//

#import "BaseNavigationController.h"

@interface BaseNavigationController ()

@end

@implementation BaseNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    [UINavigationBar appearance].barTintColor = [UIColor mainColor];
}
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated {
   
    if (self.viewControllers.count >0) {
     viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
}
@end
